CSS свойство clamp() позволяет создавать адаптивные элементы, которые масштабируются в зависимости от размера экрана, но при этом не выходят за заданные границы.
h1 { font-size: clamp(24px, 4vw, 48px); }
.container { width: clamp(300px, 50%, 900px); }
.element { padding: clamp(10px, 2vw, 1.5rem); }
- адаптивные элементы без использования медиазапросов. - различные единицы измерения для каждого значения. - можно использовать для любых свойств CSS, которые поддерживают числовые значения.
CSS свойство clamp() позволяет создавать адаптивные элементы, которые масштабируются в зависимости от размера экрана, но при этом не выходят за заданные границы.
h1 { font-size: clamp(24px, 4vw, 48px); }
.container { width: clamp(300px, 50%, 900px); }
.element { padding: clamp(10px, 2vw, 1.5rem); }
- адаптивные элементы без использования медиазапросов. - различные единицы измерения для каждого значения. - можно использовать для любых свойств CSS, которые поддерживают числовые значения.
#css
BY Vue-FAQ
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.
The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.